package filters;

import java.util.ArrayList;

import com.google.common.collect.Lists;

/**
 * Filter names, removing duplicated first, last.<p>
 * 
 * Demonstration of Pipes and Filters Pattern: Filter.<p>
 * 
 * Example duplicate: "Kevin, Kevin".<p>
 */

public class UniqueFilter
{
	ArrayList<String> _found = Lists.newArrayList();
	
	UniqueFilter( String[] text )
	{
		for( Integer ct=0; ct < text.length; ct++ )
		{		
			if( !text[ct].split("\\s")[0].equals(
				 text[ct].split("\\s")[1])  )
			{
				_found.add(text[ct] );
				
			}//if
			
		}//for
		
	}//constructor
	
	
}//class
